﻿using System;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using Sharp.DataTransferObject.CMS;
using Sharp.Platform.Mvc.Models;

namespace Sharp.WebBooter.Areas.CMS.Models
{
    public class TagViewModel : BaseViewModel
    {
        [HiddenInput]
        public Guid Id { get; set; }
        [Display(Name = "名称"), Required]
        public string Name { get; set; }
        [Display(Name = "类别"), Required]
        public Guid? CategoryId { get; set; }

        public VIUCategoryDTO Category { get; set; }

        [Display(Name = "首字母")]
        public string Initial { get; set; }

        public zTreeNode TreeNode { get; set; }
        [Display(Name = "备注")]
        public string Remark { get; set; }
    }
}